import { createRouter, createWebHistory } from 'vue-router'
// 用于配置路由规则
const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path:'/',
      name:'home',
      // 路由组件
      component:()=>import('@/views/home_item.vue') 
    },
    {
      path:'/video',
      name:'video',
      // 路由组件
      component:()=>import('@/views/video_item.vue') 
    },
    {
      path:'/bilibili',
      name:'bilibili',
      // 路由组件
      component:()=>import('@/views/bilibili.vue') 
    },
    {
      path:'/day4',
      name:'day4',
      // 路由组件
      component:()=>import('@/views/day4.vue') 
    },
    {
      path:'/day5',
      name:'day5',
      // 路由组件
      component:()=>import('@/views/day5.vue') 
    },
    {
      path:'/day6',
      name:'day6',
      // 路由组件
      component:()=>import('@/views/day6.vue') 
    },
  ]
})

export default router
